<?php
class Macys_View_Helper_Config_TestingMode extends Zend_View_Helper_Abstract 
{
	
	public $view;
	private $log;
	public function setView(Zend_View_Interface $view) {
		$this->view = $view;
		$this->log = Zend_Registry::get('log');
	}
	
	public function config_TestingMode() {
		$c = Macys_Base_Config::getInstance();
		$m = $c->getMode();
		$this->log->debug("Mode Retrived from Configuration : " . $m);
		$txt = '<a href="configuration/updateoauthandurls">Mode</a> = ' . $m;
		if(!empty($m))
		return $txt;
		else
		return 'Mode Not Available';
	} 

}